package com.maridress.maridress.service.api;

import com.maridress.maridress.model.HttpResult;
import com.maridress.maridress.model.UserResponse;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by tenmei on 16/9/6.
 */
public interface UserApi {

    @GET("api/user/login")
    Observable<HttpResult<UserResponse>> getDetail(@Query("username") String username);

    @GET("api/user/getList")
    Observable<HttpResult<List<UserResponse>>> getUserList(@Query("page") int page, @Query("pageSize") int pageSize, @Query("lastId") int lastId);
}
